﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ELS.ReportStatistic
{
    class ReportStatisticController
    {
        private ReportStatisticDataAccess reportDataAccess = new ReportStatisticDataAccess();
        internal DataTable GetAllDataReport()
        {
            DataTable dtReport = new DataTable();
            dtReport = reportDataAccess.SelectAllDataReport();
            return dtReport;
        }
        
        internal bool UpdateToRow(DataTable dtChanges)
        {
            if (reportDataAccess.UpdateRows(dtChanges) > 0)
                return true;
            else return false;
        }
    }
}
